<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:80:"D:\Software\phpstudy_pro\WWW\asks\public/../application/home\view\user\user.html";i:1637312193;s:67:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\layout.html";i:1638770506;s:72:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\common\meta.html";i:1636163362;s:74:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\common\script.html";i:1636163172;s:74:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\common\header.html";i:1636639625;s:74:"D:\Software\phpstudy_pro\WWW\asks\application\home\view\common\footer.html";i:1636163196;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <!-- 样式 -->
    <meta charset="utf-8">
<title>基于 layui 的极简社区页面模版</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="fly,layui,前端社区">
<meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
<link rel="stylesheet" href="/static/home/res/layui/css/layui.css">
<link rel="stylesheet" href="/static/home/res/css/global.css">
    <!-- js -->
    <script src="/static/home/res/layui/layui.js"></script>
<script>
    layui.cache.page = '';
    layui.cache.user = {
        username: '游客'
        , uid: -1
        , avatar: '/static/home/res/images/avatar/00.jpg'
        , experience: 83
        , sex: '男'
    };
    layui.config({
        version: "3.0.0"
        , base: '/static/home/res/mods/' //这里实际使用时，建议改成绝对路径
    }).extend({
        fly: 'index'
    }).use('fly');
</script>
</head>

<body>
    <!-- 头部 -->
    <div class="fly-header layui-bg-black">
  <div class="layui-container">
    <a class="fly-logo" href="<?php echo url('home/index/index'); ?>">
      <img src="/static/home/res/images/logo.png" alt="layui">
    </a>

    <ul class="layui-nav fly-nav-user">
      <?php if(!\think\Cookie::get('LoginUser')): ?>
      <!-- 未登入的状态 -->
      <li class="layui-nav-item">
        <a class="iconfont icon-touxiang layui-hide-xs" href="<?php echo url('home/user/index'); ?>"></a>
      </li>
      <li class="layui-nav-item">
        <a href="<?php echo url('home/index/login'); ?>">登入</a>
      </li>
      <li class="layui-nav-item">
        <a href="<?php echo url('home/index/register'); ?>">注册</a>
      </li>
      <?php else: ?>
      <!-- 登入后的状态 -->

      <li class="layui-nav-item">
        <a class="fly-nav-avatar" href="javascript:;">
          <cite class="layui-hide-xs"><?php echo \think\Cookie::get('LoginUser')['nickname']; ?></cite>
          <?php if(\think\Cookie::get('LoginUser')['auth'] == 1): ?>
          <i class="iconfont icon-renzheng layui-hide-xs" title="认证信息:<?php echo \think\Cookie::get('LoginUser')['nickname']; ?>"></i>
          <?php endif; ?>
          <i class="layui-badge fly-badge-vip layui-hide-xs">VIP<?php echo \think\Cookie::get('LoginUser')['vip']; ?></i>
          <img src="<?php echo \think\Cookie::get('LoginUser')['avatar']; ?>">
        </a>
        <dl class="layui-nav-child">
          <dd><a href="<?php echo url('home/user/profile'); ?>"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
          <dd><a href="<?php echo url('home/user/message'); ?>"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a></dd>
          <dd>
            <a href="<?php echo url('home/user/index'); ?>"><i class="layui-icon"
                style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a>
          </dd>
          <hr style="margin: 5px 0;">
          <dd><a href="<?php echo url('home/index/logout'); ?>" style="text-align: center;">退出</a></dd>
        </dl>
      </li>
      <?php endif; ?>
    </ul>
  </div>
</div>
    <!-- 内容 -->
    <style>
    .fly-home {
        background: url("<?php echo !empty($User['cover'])?$User['cover'] : '/static/home/res/images/back.jpg'; ?>") no-repeat left top;
        background-size: cover;
    }
</style>
<div class="fly-home fly-panel">
    <img src="<?php echo !empty($User['avatar'])?$User['avatar'] : '/static/home/res/images/avatar.jpg'; ?>" alt="">
    <?php if($User['auth'] ==1): ?>
    <i class="iconfont icon-renzheng" title="Fly社区认证"></i>
    <?php endif; ?>
    <h1>
        <?php echo $User['nickname']; if($User['sex'] == 0): ?>
        <span>保密</span>
        <?php elseif($User['sex'] == 1): ?>
        <i class="iconfont icon-nan"></i>
        <?php elseif($User['sex'] == 2): ?>
        <i class="iconfont icon-nv"></i>
        <?php endif; ?>

        <i class="layui-badge fly-badge-vip">VIP<?php echo $User['vip']; ?></i>

        <!--
    <span style="color:#c00;">（管理员）</span>
    <span style="color:#5FB878;">（社区之光）</span>
    <span>（该号已被封）</span>
    -->
    </h1>

    <?php if($User['auth'] == 1): ?>
    <p style="padding: 10px 0; color: #5FB878;">认证信息:<?php echo $User['nickname']; ?></p>
    <?php else: ?>
    <p style="padding: 10px 0; color: red;">认证信息: 未认证</p>
    <?php endif; ?>

    <p class="fly-home-info">
        <i class="iconfont icon-kiss" title="积分"></i><span style="color: #FF7200;">积分: <?php echo $User['point']; ?></span>
        <i class="iconfont icon-shijian"></i><span><?php echo $User['createtime']; ?> 加入</span>

        <?php if($User['province']): ?>
        <i class="iconfont icon-chengshi"></i>
        <span>来自
            <?php echo $User['provinces']['name']; if($User['city']): ?>
            <?php echo $User['citys']['name']; endif; ?>
        </span>
        <?php else: ?>
        <i class="iconfont icon-chengshi"></i><span>未填写</span>
        <?php endif; ?>
    </p>

    <?php if($User['content']): ?>
    <p class="fly-home-sign"><?php echo $User['content']; ?></p>
    <?php else: ?>
    <p class="fly-home-sign">这个人很懒,什么都没留下</p>
    <?php endif; if($User['id'] != \think\Cookie::get('LoginUser')['id']): ?>
    <div class="fly-sns" data-user="">
        <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
        <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
    </div>
    <?php endif; ?>
</div>

<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6 fly-home-jie">
            <div class="fly-panel">
                <h3 class="fly-panel-title"> <?php echo $User['nickname']; ?> 最近的提问</h3>
                <ul class="jie-row">
                    <li>
                        <span class="fly-jing">精</span>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>刚刚</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>2017-10-30</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div> -->
                </ul>
            </div>
        </div>

        <div class="layui-col-md6 fly-home-da">
            <div class="fly-panel">
                <h3 class="fly-panel-title"><?php echo $User['nickname']; ?> 最近的回答</h3>
                <ul class="home-jieda">
                    <li>
                        <p>
                            <span>1分钟前</span>
                            在<a href="" target="_blank">tips能同时渲染多个吗?</a>中回答：
                        </p>
                        <div class="home-dacontent">
                            尝试给layer.photos加上这个属性试试：
                            <pre>
full: true         
</pre>
                            文档没有提及
                        </div>
                    </li>
                    <li>
                        <p>
                            <span>5分钟前</span>
                            在<a href="" target="_blank">在Fly社区用的是什么系统啊?</a>中回答：
                        </p>
                        <div class="home-dacontent">
                            Fly社区采用的是NodeJS。分享出来的只是前端模版
                        </div>
                    </li>

                    <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div> -->
                </ul>
            </div>
        </div>
    </div>
</div>

<script src="../../res/layui/layui.js"></script>
<script>
    layui.cache.page = 'user';
    layui.cache.user = {
        username: '游客'
        , uid: -1
        , avatar: '../../res/images/avatar/00.jpg'
        , experience: 83
        , sex: '男'
    };
    layui.config({
        version: "3.0.0"
        , base: '../../res/mods/'
    }).extend({
        fly: 'index'
    }).use('fly');
</script>

</body>

</html>
    <!-- 底部 -->
    <div class="fly-footer">
    <p>2017 &copy; <a href="http://www.layui.com/" target="_blank">Fly技术社区</a></p>
</div>
</body>

</html>